<?php if (!defined('THINK_PATH')) exit();?><style>
	.form-control{
		width:70%;
		display: inline-block;
	}
</style>
<div class="col-xs-12" style="margin-top: 80px;">
	<div class="row">
		<form class="form-horizontal col-xs-8" id="userlistform" role="form" style="padding-right: 48px ">
		   <div class="form-group">
		      <label for="name" class="col-sm-2 control-label">用户名</label>
		      <div class="col-sm-10">
		         <input type="text" class="form-control" value="<?php echo ($list["name"]); ?>" name="name" id="name"
		            placeholder="请输入名字" value="<?php echo ($list["name"]); ?>">
		      </div>
		   </div>
		   <div class="form-group">
		      <label for="pwd" class="col-sm-2 control-label">密码</label>
		      <div class="col-sm-10">
		         <input class="form-control" type="password" name="pwd" id="pwd"
		            placeholder="请输入密码（不修改密码不用填）">
		      </div>
		   </div>
		   <div class="form-group">
		      <label for="repwd" class="col-sm-2 control-label">新密码</label>
		      <div class="col-sm-10">
		         <input  class="form-control" type="password" name="repwd" id="repwd"
		            placeholder="请输入新密码（不修改密码不用填）">
		      </div>
		   </div>


		   <div class="form-group">
		      <label for="erepwd" class="col-sm-2 control-label">确认新密码</label>
		      <div class="col-sm-10">
		         <input type="password" class="form-control" id="erepwd" name="erepwd"
		            placeholder="请确认密码（不修改密码不用填）">
		      </div>
		   </div>

		   <div class="form-group">
		       <label  class="col-sm-2 control-label" for="describe">个性签名</label>
		       <div class="col-sm-7">
	       		    <textarea class="form-control" rows="3"  id="describe" name="describe" placeholder="请输入个性签名"><?php echo ($list["describe"]); ?></textarea>
       		   </div>
		   </div>
		  <!--  <div class="form-group">
		      <div class="col-sm-offset-2 col-sm-10">
		         <div class="checkbox">
		            <label>
		               <input type="checkbox"> 请记住我
		            </label>
		         </div>
		      </div>
		   </div> -->

			<input type="text" class="hide" id="face" name="face">
		   <div class="form-group">
		      <div class="col-sm-offset-2 col-sm-1">
		         <button id="submitBtn" class="btn btn-default">保存</button>
		      </div>
		       <div class="col-sm-4">
		         <button type="submit" class="btn btn-default">重置密码</button>
		      </div>
		   </div>

	   </form>


		<div class="col-xs-4" id="user_photo">
			<h5 style="margin:0;width:180px;height:32px;line-height: 32px;color:darkorange">
				<span style="color:darkred"><strong>头像</strong></span>(点击头像修改头像)
			</h5>
			<img  id="imguploadurl" src="/Public/<?php echo ($list["face"]); ?>" onerror="javascript:this.src='/Public/home/img/user_header_photo.png'" alt="" style="border: 1px solid #eee; border-radius: 5px; display:block;max-width: 260px;width:180px;height:180px">
			<p style="width:180px;font-size:16px;text-align: center"><?php echo (session('user_name')); ?></p>



			<form id= "uploadForm" enctype="multipart/form-data" method="post" name="fileinfo">

				 <input class="hide" type="file" id="imgupload" name="file"/>
				<!--<input type="button"  value="上传" onclick="doUpload()" />-->
			</form>



			<!-- <form action="/index.php/Usercenter/upload_img_header" method="post" enctype="multipart/form-data" name="upload_form">
              <label>选择图片文件</label>
             <input name="imgfile" type="file" accept="image/gif, image/jpeg"/>
              <input name="upload" type="submit" value="上传" />
            </form> -->
		</div>



	</div>



</div>







<script type="text/javascript">
var Think = {
			    "APP": '/index.php',
			    "URL": '/index.php/Usercenter',
			    "ROOT": '',
			    "PUBLIC": '/Public'
			};

var Think = {
		"APP": '/index.php',
		"URL": '/index.php/Usercenter',
		"ROOT": '',
		"PUBLIC": '/Public'
};
	$.fn.serializeObject = function() {
		debugger;
		var o = {};
		var a = this.serializeArray();

//		0= {
//			"first":"1",
//			"two"
//		}
		$.each(a, function() {
			if (o[this.name] !== undefined) {

				if (!o[this.name].push) {
					o[this.name] = [o[this.name]];
				}

				o[this.name].push(this.value || '');
				if($.trim(this.value) == ''){
					delete o[this.name];
				}
			} else {
				if($.trim(this.value) !== ''){
					o[this.name] = this.value || '';
				}

			}

		});
		return o;
	};

	LoadScript(Think.PUBLIC+"/home/js/userlist.js",function(){
debugger;
		userlist.Init();


	});

//保存链接code，刷新直接加载到该页面
  localStorage.setItem("user_url","<?php echo ($code); ?>");
</script>